package com.sl.au.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="sl_crm_weekly")
public class Weekly extends Root {

    /** 发布者 */
    
    @OneToOne
    @JoinColumn(unique=false)
    private User issuer;
    
    
    /** 是否发布 */
    @Column(name="npublished")
    private boolean published;
    
    /** 是否批示 */
    @Column(name="isInstructions")
    private String isInstructions;

    /**发布者姓名 */
    @Column(name="sIssuerName")
    private String issuerName;
    
    /** 发布日期 */
    @Column(name="dIssueDate")
    private Date issueDate;

	/** 周报名称 */
    @Column(name="sName")
    private String name;
    
    
    /** 星期*/
    @Column(name="dWeek1")
    private Date week1;
    @Column(name="dWeek2")
    private Date week2;
    @Column(name="dWeek3")
    private Date week3;
    @Column(name="dWeek4")
    private Date week4;
    @Column(name="dWeek5")
    private Date week5;
    @Column(name="dWeek6")
    private Date week6;
    @Column(name="dWeek7")
    private Date week7;
    /**内容*/
    @Column(name="sContent1",length=4000)
    private String content1;
    @Column(name="sContent2",length=4000)
    private String content2;
    @Column(name="sContent3",length=4000)
    private String content3;
    @Column(name="sContent4",length=4000)
    private String content4;
    @Column(name="sContent5",length=4000)
    private String content5;
    @Column(name="sContent6",length=4000)
    private String content6;
    @Column(name="sContent7",length=4000)
    private String content7;
    


    /** 下周工作计划时间*/
    @Column(name="dNextTime")
    private Date nextTime;
    
    /** 下周工作计划*/
    @Column(name="sWorkPlan",length=4000)
    private String workPlan;
    
    /**  下周工作备注*/
    @Column(name="sMemo",length=4000)
    private String memo;
   
    /**  批示*/
    @Column(name="sInstruction",length=4000)
    private String instruction;
    

	public String getIsInstructions() {
		return isInstructions;
	}

	public void setIsInstructions(String isInstructions) {
		this.isInstructions = isInstructions;
	}

	public User getIssuer() {
        return issuer;
    }

    public void setIssuer(User issuer) {
        this.issuer = issuer;
    }

    public Date getIssueDate() {
        return issueDate;
    }

    public void setIssueDate(Date issueDate) {
        this.issueDate = issueDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getInstruction() {
		return instruction;
	}

	public void setInstruction(String instruction) {
		this.instruction = instruction;
	}

	public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

	public boolean isPublished() {
		return published;
	}

	public void setPublished(boolean published) {
		this.published = published;
	}
    
	public String getIssuerName() {
		return issuerName;
	}

	public void setIssuerName(String issuerName) {
		this.issuerName = issuerName;
	}

	public Date getWeek1() {
		return week1;
	}

	public void setWeek1(Date week1) {
		this.week1 = week1;
	}

	public Date getWeek2() {
		return week2;
	}

	public void setWeek2(Date week2) {
		this.week2 = week2;
	}

	public Date getWeek3() {
		return week3;
	}

	public void setWeek3(Date week3) {
		this.week3 = week3;
	}

	public Date getWeek4() {
		return week4;
	}

	public void setWeek4(Date week4) {
		this.week4 = week4;
	}

	public Date getWeek5() {
		return week5;
	}

	public void setWeek5(Date week5) {
		this.week5 = week5;
	}

	public Date getWeek6() {
		return week6;
	}

	public void setWeek6(Date week6) {
		this.week6 = week6;
	}

	public Date getWeek7() {
		return week7;
	}

	public void setWeek7(Date week7) {
		this.week7 = week7;
	}

	public String getContent1() {
		return content1;
	}

	public void setContent1(String content1) {
		this.content1 = content1;
	}

	public String getContent2() {
		return content2;
	}

	public void setContent2(String content2) {
		this.content2 = content2;
	}

	public String getContent3() {
		return content3;
	}

	public void setContent3(String content3) {
		this.content3 = content3;
	}

	public String getContent4() {
		return content4;
	}

	public void setContent4(String content4) {
		this.content4 = content4;
	}

	public String getContent5() {
		return content5;
	}

	public void setContent5(String content5) {
		this.content5 = content5;
	}

	public String getContent6() {
		return content6;
	}

	public void setContent6(String content6) {
		this.content6 = content6;
	}

	public String getContent7() {
		return content7;
	}

	public void setContent7(String content7) {
		this.content7 = content7;
	}

	public Date getNextTime() {
		return nextTime;
	}

	public void setNextTime(Date nextTime) {
		this.nextTime = nextTime;
	}

	public String getWorkPlan() {
		return workPlan;
	}

	public void setWorkPlan(String workPlan) {
		this.workPlan = workPlan;
	}

//	@Override
//	public String toString() {
//		return "Weekly [issuer=" + issuer + ", published=" + published + ", name=" + name + ", issueDate=" + issueDate
//				+ ", contents=" + contents + ", memo=" + memo + "]";
//	}

	
}
